<?php
include "./Utils.php";
$appID = "wxcc20ec64170816e1";
$appSecret = "3f2339cc60aa05a96c5fa8d7acd02e62";

define('TOKEN','weixin');
$utils=new Utils();
if ($_GET['echostr']) {
	$utils->valid();
}else{
	$utils->responseMsg();
}

// $data = '{  
//     "action_name": "QR_LIMIT_SCENE",  
//     "action_info": {  
//         "scene": {  
//             "scene_id": 111  
//         }  
//     }  
// }';  
// $res = (new Utils($appID,$appSecret))-> getTicket($data);
// $url = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=".$res;
// echo "<img src='{$url}'/>";
// $res = (new Utils($appID,$appSecret))->responseMsg();


 
              
